/**
 * Created by rekey on 12/17/13.
 */
var xiami = require('../lib/xiami.js');

exports.getMedia = function(req, res) {
    var id = req.param('id');
    xiami.getMusic(id, function(data) {
        res.set('Cache-Control', 'public, max-age=7200');
        res.jsonp(data);
    });
};